//
// Created by immor on 2024/7/18.
//

#ifndef USB_CAMERA_USB_CAMERA_H
#define USB_CAMERA_USB_CAMERA_H

#include <Arduino.h>
#include "libuvc_def.h"

class UsbCamera {
public:
    static void begin(const IPAddress& address, uint16_t streamPort, uint16_t localUdpPort);

    static void setChannelIndex(uint8_t channelIndex);

    static void startSend();
    static void stopSend();
    void (*cameraOpt[2])() = {startSend, stopSend};

};


#endif //USB_CAMERA_USB_CAMERA_H
